/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.PokemonEJB.Resources;

import javax.annotation.sql.DataSourceDefinition;
import javax.enterprise.inject.Produces;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

@DataSourceDefinition(name = "java:app/jdbc/sampleArquilianWytiwyrDS",
className = "org.apache.derby.jdbc.EmbeddedDriver",
url = "jdbc:derby:memory:sampleArquilianWytiwyrDB;create=true;user=app;password=app"
)
public class DatabaseResource {

  @Produces
  @PersistenceContext(unitName = "sampleArquilianWytiwyrPU")
  private EntityManager em;
}